package com.battcn.platform.mapper.money;

import com.battcn.framework.mybatis.mapper.BaseMapper;
import com.battcn.platform.pojo.dto.money.ExpenditureDto;
import com.battcn.platform.pojo.dto.money.ExpenditureRecordDto;
import com.battcn.platform.pojo.po.money.TbExpenditure;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface TbExpenditureMapper extends BaseMapper<TbExpenditure> {

    /**
     * 根据操作ID删除
     *
     * @param id 操作ID
     */
    @Update("update tb_expenditure set del_flag = '1' WHERE id = #{id}")
    int deleteById(String id);

    /**
     * 根据操作ID修改状态
     *
     * @param id 操作ID
     */
    @Update("update tb_expenditure set status = #{status} WHERE id = #{id}")
    int updateStatus(String id,String status);

    /**
     * 根据条件查询信息
     *
     *
     * @return
     */
    List<ExpenditureDto> findList(TbExpenditure tbExpenditure);



}